package com.lgy.service.impl;

import com.lgy.dao.CarseriesDao;
import com.lgy.pojo.Carseries;
import com.lgy.service.ICarseriesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CarseriesServiceImpl implements ICarseriesService {
    @Autowired
    private CarseriesDao carseriesDao;

    @Override
    public List<Carseries> findCarSeriesAll(Integer brandId) {
        return carseriesDao.findCarSeriesAll(brandId);
    }

    @Override
    public Carseries findByCarSeriesId(Integer seriesId) {
        return carseriesDao.findByCarSeriesId(seriesId);
    }
}
